﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="HelpSolicitacoes.aspx.cs" Inherits="CPD_HelpSolicitacoes" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <p>
        <img alt="Help Desk" src="../figuras/T_HelpDesk.gif" 
            style="width: 506px; height: 28px" /></p>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td align="left" colspan="4">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" 
                    Text="CADASTRO DE SOLICITAÇÕES"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 77px">
                <asp:Label ID="Label2" runat="server" Text="IP:"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtIP" runat="server" Enabled="False"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="Label3" runat="server" Text="Máquina:"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtNomeMaquina" runat="server" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 77px">
                <asp:Label ID="Label4" runat="server" Text="Ramal/Nº:"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtRamal" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="Label5" runat="server" Text="Tombamento:"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtTombamento" runat="server" MaxLength="6" Width="80px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 77px">
                <asp:Label ID="Label6" runat="server" Text="Tipo:"></asp:Label>
            </td>
            <td align="left" colspan="3">
                <asp:DropDownList ID="ddCodCategoriaProblema" runat="server" 
                    DataSourceID="dsCategoriasProblemas" AppendDataBoundItems="True" 
                    DataTextField="CategoriaProblema" DataValueField="CodCategoriaProblema">
                    <asp:ListItem Value="-1">Selecione o tipo de ocorrência</asp:ListItem>

                </asp:DropDownList>
                <asp:ObjectDataSource ID="dsCategoriasProblemas" runat="server" 
                    SelectMethod="GetCategoriasProblemas" 
                    TypeName="CPDBLL.CPDHelpCategoriaProblemas">
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td align="right" valign="top" style="width: 77px">
                <asp:Label ID="Label7" runat="server" Text="Relato:"></asp:Label>
            </td>
            <td align="left" colspan="3">
                <asp:TextBox ID="txtRelato" runat="server" Rows="4" TextMode="MultiLine" 
                    Width="340px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" valign="top" style="width: 77px">
                <asp:Label ID="Label8" runat="server" Text="Tela do erro:"></asp:Label>
            </td>
            <td align="left" colspan="3">
                <asp:FileUpload ID="FileUpload1" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="width: 77px" align="right">
                &nbsp;</td>
            <td align="left" colspan="3">
                permitido apenas arquivos com extensão .png, .doc e .docx.</td>
        </tr>
        <tr>
            <td style="width: 77px" align="right">
                <asp:Label ID="Label9" runat="server" Text="Solicitador por:"></asp:Label>
            </td>
            <td align="left" colspan="3">
                <asp:HiddenField ID="hfChapa" runat="server" />
                <asp:Label ID="lblSolicitadoPor" runat="server"></asp:Label>
                <asp:Label ID="lblLinkSolicitarPOutraPessoa" runat="server" Visible="false"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 77px">
                &nbsp;</td>
            <td align="left">
                <asp:ImageButton ID="bCadastrar" runat="server" 
                    ImageUrl="~/figuras/b_cadastrar.gif" onclick="bCadastrar_Click" />
            </td>
            <td colspan="2">
                <asp:RequiredFieldValidator ID="RV1" runat="server" ControlToValidate="txtRamal" 
                    Display="None" ErrorMessage="Informe o ramal"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV2" runat="server" 
                    ControlToValidate="txtTombamento" Display="None" 
                    ErrorMessage="Informe o tombamento do computador"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV3" runat="server" 
                    ControlToValidate="ddCodCategoriaProblema" Display="None" 
                    ErrorMessage="Selecione o tipo de ocorrência" InitialValue="-1"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RV4" runat="server" ControlToValidate="txtRelato" 
                    Display="None" ErrorMessage="Informe o relato do problema"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CV1" runat="server" ControlToValidate="txtRamal" 
                    Display="None" ErrorMessage="O ramal deve ser preenchido com números" 
                    Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                    ShowMessageBox="True" ShowSummary="False" />
            </td>
        </tr>
        <tr>
            <td style="width: 77px">
                &nbsp;</td>
            <td align="left" colspan="3">
                <asp:Label ID="lblMensagem" runat="server" EnableViewState="False"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>

